package com.aaa.system.service;

import com.aaa.system.vo.PasswordVo;
import com.aaa.system.vo.UserVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.aaa.entity.User;
import com.aaa.vo.Result;

import java.util.List;
import java.util.Map;

/**
 * @author Lei
 * @create 2023-03-20 16:41
 */
public interface UserService {

    User getByUsername(String username);

    Result<User> getUserInfo();

    Result<IPage<User>> findByCondition(Integer current, Integer size, UserVo userVo);

    Result<Boolean> saveOrUpdateUser(User user);

    Result<Boolean> delUser(Long userId);

    Result<Boolean> muldelUser(Long[] userIds);

    Result<String> checkPhone(String checkphone);

    User getUser();

    List<User> queryUserNeedScheduling(Map<String, Object> map);

    List<User> getListAll();

    Result<Boolean> revisePassWord(PasswordVo passwordVo);

    Result<String> quitSystem();

    String getUsernameById(Long userId);
}
